package megamek.common.actions;

import java.util.Vector;

import org.junit.Test;

import megamek.common.Aero;
import megamek.common.Entity;
import megamek.common.EquipmentType;
import megamek.common.HitData;
import megamek.common.Mounted;
import megamek.common.PilotingRollData;
import megamek.common.Report;
import junit.framework.TestCase;


public class ClubAttackActionTest extends TestCase {

        Entity entity;
        EquipmentType equipType = new EquipmentType();
        Mounted club = new Mounted(entity, equipType);
        ClubAttackAction clubAttack = new ClubAttackAction(1, 5, club, 10);
       
        //Constructor for the Test case. 
        public ClubAttackActionTest(String name) throws Exception
         {                             
                     int entityId = 1;
                     int targetId = 1;
                     Mounted newClub = new Mounted(new Aero(), new EquipmentType());
                     int aimTable = 1;

                  ClubAttackAction results = new ClubAttackAction(entityId, targetId, newClub, aimTable);


         }
        
        // Testing to make sure that the player receives a club for attacking
        @Test
        public void testGetClub() throws Exception
             {
                ClubAttackAction fixture = new ClubAttackAction(1, 2, 3, new Mounted(new Aero(), new EquipmentType()), 1);

                 fixture.getClub();
             }
        
        //Testing to see if there are any damages from club.
        
        @Test
        public void damageTest() throws Exception 
                
            {
                entity.heat = 1;
                club.setLocation(5, true);
                boolean infantryTargeted = true;

                int damageResult = ClubAttackAction.getDamageFor(entity, club, infantryTargeted);
        
        }
        
        //Testing to see if the clubs are properly set up.
        @Test
        public void testSetClub() 
         {
                clubAttack.setClub(club);
                assertEquals(club, clubAttack.getClub());
         }
}
